package com.itheima.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.dto.SetmealDto;
import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Setmeal;
import com.itheima.vo.SetmealVo;

import java.util.List;

public interface SetmealService extends IService<Setmeal> {

    //查询全部
    List<Setmeal> findAll();

    //新增 or编辑
    void addOrUpdate(SetmealDto setmealDto);

    //逻辑删除
    void deleteById(Long id);

    //分页查询
    PageResult findByPage(QueryPageBean pageBean);

    //清楚redis中的垃圾图片
    void clearOssObject();

    SetmealVo findSetmealDetail(Long setmealId);
}
